package com.cheetah.start.module.system.domain;


import lombok.Data;

/**
 * 邮件
 *
 * @author Feel
 * @date 2021/08/19
 */
@Data
public class MailDo {

    /**
     * 收件人邮箱
     */
    private String to;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 是否是 html
     */
    private boolean isHtml;

    public MailDo(String to, String title, String content) {
        this.to = to;
        this.title = title;
        this.content = content;
        this.isHtml = false;
    }

    public MailDo(String to, String title, String content, boolean isHtml) {
        this.to = to;
        this.title = title;
        this.content = content;
        this.isHtml = isHtml;
    }
}
